import config from '../../utils/config';
import apiCreator from '../../utils/apiCreator';
import { stringify } from 'qs';
const api = apiCreator();

export default {
  // 获取簿记交收列表
  getList: (query) => api.post(`${config.interfaces.type1}tradeOperate/getTrades2`, query),
  // 簿记交易批量交收
  getTradeInstruction: (query) => api.get(`${config.interfaces.type1}tradeOperate/getTradeInstruction`, query),
  // 簿记回溯
  getTradeInstructionHS: (query) => api.get(`${config.interfaces.type1}tradeOperate/getTradeInstructionHS`, query),
  // 获取簿记行为交收列表
  getBehavioeList: (query) => api.post(`${config.interfaces.type1}tradeOperate/getTrades3`, query),
  // 行为列表单个交收
  getOneInstruction: (query) => api.get(`${config.interfaces.type1}tradeOperate/confirmOne`, query),
  // 行为列表批量交收
  getBatchInstruction: (query) => api.get(`${config.interfaces.type1}tradeOperate/confirmAll`, query),
  // 行为表回溯
  getBehaviorInstructionHS: (query) => api.get(`${config.interfaces.type1}tradeOperate/getTradeInstructionHkHS`, query),
  // 港股详情获取行为信息--港股页面使用
  clinchInfromation: (query) => api.get(`${config.interfaces.type1}bondTrade/getClinchDetail`, query),
};
